package com.wcsy.myblog.entity;

import io.swagger.annotations.ApiModelProperty;

/**
 * 评论表
 * */
public class Comment {
  @ApiModelProperty("评论id")
  private long commentId;
  @ApiModelProperty("评论用户id")
  private long userId;
  @ApiModelProperty("评论内容")
  private String commentContent;
  @ApiModelProperty("评论时间")
  private String commentTime;
  @ApiModelProperty("评论的文章id")
  private long articleId;
  @ApiModelProperty("评论的文章名称")
  private String articleName;
  @ApiModelProperty("评论的文章作者id")
  private String userName;
  @ApiModelProperty("评论的文章作者头像")
  private String userImg;


  public String getArticleName() {
    return articleName;
  }

  public void setArticleName(String articleName) {
    this.articleName = articleName;
  }

  public String getUserName() {
    return userName;
  }

  public void setUserName(String userName) {
    this.userName = userName;
  }

  public String getUserImg() {
    return userImg;
  }

  public void setUserImg(String userImg) {
    this.userImg = userImg;
  }

  public long getCommentId() {
    return commentId;
  }

  public void setCommentId(long commentId) {
    this.commentId = commentId;
  }


  public long getUserId() {
    return userId;
  }

  public void setUserId(long userId) {
    this.userId = userId;
  }


  public String getCommentContent() {
    return commentContent;
  }

  public void setCommentContent(String commentContent) {
    this.commentContent = commentContent;
  }


  public String getCommentTime() {
    return commentTime;
  }

  public void setCommentTime(String commentTime) {
    this.commentTime = commentTime;
  }


  public long getArticleId() {
    return articleId;
  }

  public void setArticleId(long articleId) {
    this.articleId = articleId;
  }

  @Override
  public String toString() {
    return "Comment{" +
            "commentId=" + commentId +
            ", userId=" + userId +
            ", commentContent='" + commentContent + '\'' +
            ", commentTime='" + commentTime + '\'' +
            ", articleId=" + articleId +
            ", articleName='" + articleName + '\'' +
            ", userName='" + userName + '\'' +
            ", userImg='" + userImg + '\'' +
            '}';
  }
}
